home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tex / inputs / cd-doc.tex < prev    next >
Encoding:
Text File  |  1991-05-21  |  3.0 KB  |  96 lines

  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Cut Here %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % cddoc.tex
  3. \documentstyle[11pt,cd]{article}
  4. \nofiles
  5.  
  6. \addtolength{\textwidth}{1in}
  7. \addtolength{\oddsidemargin}{-.5in}
  8.  
  9. \newcommand{\AmSTeX}{$\cal A$\kern-.1667em\lower.5ex\hbox
  10.  {$\cal M$}\kern-.125em{$\cal S$}-\TeX}
  11.  
  12. \newcommand{\cdrl}{\cd\rightleftarrows}
  13. \newcommand{\cdlr}{\cd\leftrightarrows}
  14. \newcommand{\cdr}{\cd\rightarrow}
  15. \newcommand{\cdl}{\cd\leftarrow}
  16. \newcommand{\cdu}{\cd\uparrow}
  17. \newcommand{\cdd}{\cd\downarrow}
  18. \newcommand{\cdud}{\cd\updownarrows}
  19. \newcommand{\cddu}{\cd\downuparrows}
  20.  
  21.  
  22. \begin{document}\thispagestyle{empty}
  23. \begin{center}
  24. {\Large Commutative Diagrams for \LaTeX} \\
  25. March 3, 1989
  26. \end{center}
  27.  
  28. \paragraph{Commutative diagrams} These were adapted from those in \AmSTeX\
  29. (see p.\ 146 of {\em The Joy of \TeX}). All of the horizontal ``arrows'' will
  30. stretch with the superscripts and subscripts. These can also be used outside
  31. of \verb"\CD", where they will be somewhat shorter. You must put `{\tt cd}'
  32. in with the other style options, for example
  33. \verb"\documentstyle[12pt,cd]{article}".  The \verb"@"-commands from the
  34. \AmSTeX\ still work, but the new \verb"\cd"-style is the preferred format.
  35. The table below shows the arrows and names, along with suggested
  36. abbreviations.
  37.  
  38. \begin{center}
  39. \begin{tabular}{|c|c|c||c|c|c|} \hline
  40. Arrow & Name & Abbr. & Arrow & Name & Abbr.\\ \hline
  41. $\rightarrow$ & \verb"\cd\rightarrow", \verb"\cd>" & \verb"\cdr" &
  42.         $\leftarrow$ & \verb"\cd\leftarrow", \verb"\cd<" & \verb"\cdl" \\
  43. $\cd\rightleftarrows {}{}$ &\verb"\cd\rightleftarrows" &\verb"\cdrl" &
  44.         $\cd\leftrightarrows{}{}$ &\verb"\cd\leftrightarrows"
  45.         &\verb"\cdlr" \\
  46. $\uparrow$ &\verb"\cd\uparrow" & \verb"\cdu" &
  47.         $\downarrow$ &\verb"\cd\downarrow" &\verb"\cdd" \\
  48. $\uparrow\downarrow$ &\verb"\cd\updownarrows" & \verb"\cdud" &
  49.         $\downarrow\uparrow$ &\verb"\cd\downuparrows" &\verb"\cddu" \\
  50.         $|$ & \verb"\cd|" && $\|$ & \verb"\cd\|" & \\
  51. $\cd={}{}$ & \verb"\cd=" && None & \verb"\cd." &  \\
  52. \hline
  53. \end{tabular}
  54. \end{center}
  55.  
  56. \paragraph{Example}
  57. \begin{center}
  58. \begin{tabular}{l}
  59. \verb"$$\CD" \\
  60. \verb"G \cdrl {\gamma}{\delta}  H  \cdr {}{\Delta} K \\" \\
  61. \verb"\cd.  \cdud {f}{g}  \cd| {h}{k} \\" \\
  62. \verb"0 \cdr {}{}  G'  \cd= {\beta}{}  H'"
  63. \verb"\endCD $$"
  64. \end{tabular}
  65. \hfil
  66. $\CD
  67. G  \cdrl {\gamma}{\delta}  H  \cdr {}{\Delta} K \\
  68. \cd. \cdud {f}{g}       \cd| {h}{k} \\
  69. 0 \cdr {}{} G' \cd= {\beta}{}   H'
  70. \endCD$
  71. \end{center}
  72.  
  73.  
  74. \bigskip\noindent
  75. The abbreviations were made with the following \verb"\newcommand"'s at the
  76. top of the file:
  77. \begin{verbatim}
  78. \newcommand{\cdrl}{\cd\rightleftarrows}
  79. \newcommand{\cdlr}{\cd\leftrightarrows}
  80. \newcommand{\cdr}{\cd\rightarrow}
  81. \newcommand{\cdl}{\cd\leftarrow}
  82. \newcommand{\cdu}{\cd\uparrow}
  83. \newcommand{\cdd}{\cd\downarrow}
  84. \newcommand{\cdud}{\cd\updownarrows}
  85. \newcommand{\cddu}{\cd\downuparrows}
  86. \end{verbatim}
  87.  
  88. \bigskip
  89. \begin{center}
  90. Darrel Hankerson (Bitnet: \verb"hank@auducvax") \\
  91. Algebra, Combinatorics, \& Analysis \\
  92. Auburn University \\
  93. Auburn, Alabama 36849
  94. \end{center}
  95.  
  96.